function rand(low, high )
{	
	return low  +  Math.random() * ( high - low );
}

function InitData( )
{
	RandomArray = new Float32Array( NUMPARTICLES );
	VertexArray = new Float32Array( NUMPARTICLES * 3 );
	ColorArray  = new Float32Array( NUMPARTICLES * 3 );
	VelocityArray = new Float32Array( NUMPARTICLES * 4 );
	for(var i = 0; i < particles.length; i++ )
	{
		VertexArray[i*3] = 0;
		VertexArray[i*3+1] = 0;
		VertexArray[i*3+2] = 0;
		
		ColorArray[i*3] = 1;
		ColorArray[i*3+1] = 1;
		ColorArray[i*3+2] = 1;
		
		VelocityArray[i*4] = 0;
		VelocityArray[i*4+1] = 0;
		VelocityArray[i*4+2] = 0;
		VelocityArray[i*4+3] = 0;
		
		RandomArray[i] = i;

		genParticle(i, true);
	}
}